package com.vs.model;

import org.apache.struts.action.ActionForm;

public class ExpenseTypeForm extends ActionForm {

	@Override
	public String toString() {
		return "ExpenseTypeForm [expenseTypeId=" + expenseTypeId
				+ ", expenseType=" + expenseType + ", action=" + action
				+ ", addedBy=" + addedBy + ", modifiedBy=" + modifiedBy + "]";
	}

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer expenseTypeId;
	private String expenseType;
	private String action;
	private String addedBy;
	private String modifiedBy;
	
	public String getAddedBy() {
		return addedBy;
	}

	public void setAddedBy(String addedBy) {
		this.addedBy = addedBy;
	}

	public String getModifiedBy() {
		return modifiedBy;
	}

	public void setModifiedBy(String modifiedBy) {
		this.modifiedBy = modifiedBy;
	}

	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	public Integer getExpenseTypeId() {
		return expenseTypeId;
	}

	public void setExpenseTypeId(Integer expenseTypeId) {
		this.expenseTypeId = expenseTypeId;
	}

	public String getExpenseType() {
		return expenseType;
	}

	public void setExpenseType(String expenseType) {
		this.expenseType = expenseType;
	}

	@Override
	public boolean equals(Object obj) {
		if (obj instanceof ExpenseTypeForm) {
			ExpenseTypeForm exp = (ExpenseTypeForm) obj;
			if (exp.expenseTypeId.equals(this.expenseTypeId))
				return true;
		}
		return false;
	}
}
